﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Watson.TemporaryFilesDeleter
{
    /// <summary>
    /// Event arguments for the <see cref="Log.LogItemWritten"/> event.
    /// </summary>
    public class LogItemWrittenEventArgs : EventArgs
    {
        #region Private Read-only Fields

        /// <summary>
        /// The log item that was written to the log.
        /// </summary>
        private readonly LogItem logItem;

        #endregion

        #region Public Properties

        /// <summary>
        /// Gets the log item that was written to the log.
        /// </summary>
        public LogItem LogItem
        {
            get { return this.logItem; }
        }

        #endregion

        #region Public Constructors

        /// <summary>
        /// Initialises a new instance of the LogItemWrittenEventArgs class.
        /// </summary>
        public LogItemWrittenEventArgs()
        { }

        /// <summary>
        /// Initialises a new instance of the LogItemWrittenEventArgs class
        /// specifying a value for the current activity.
        /// </summary>
        /// <param name="logItem">
        /// The log item that was written to the log.
        /// </param>
        public LogItemWrittenEventArgs(LogItem logItem)
        {
            this.logItem = logItem;
        }

        #endregion
    }
}
